<?php

/**
 * @Author: zhibinm (113664000@qq.com)
 * @Date:   2018-04-10 10:59:34 
 * @Copyright:   xuebingsi
 * @Last Modified by:   Zhibinm
 * @Last Modified time: 2018-04-10 11:27:00
 */

var_dump($_GET);

$arr = ['学并思',18,'男',18925139194,34534534];

$user = [
	'username'=>'学并思',
	'age'=>18,
	'sex'=>'男',
	'phone'=>18925139194,
	'qq'=>456456456
];

// $user['addr'] = "广州";

// var_dump($user);

// foreach ($user as $k => $v) {
// 	echo $k.":".$v."<br>";
// }


$user = [
	[
		'username'=>'小明',
		'age'=>18,
		'sex'=>'男',
		'phone'=>18925139194,
		'qq'=>456456456
	],
	[
		'username'=>'小红',
		'age'=>18,
		'sex'=>'男',
		'phone'=>18925139194,
		'qq'=>456456456
	],
	[
		'username'=>'小花',
		'age'=>18,
		'sex'=>'男',
		'phone'=>18925139194,
		'qq'=>456456456
	]	
];

// var_dump($user);
echo "<table border='1'>";
foreach ($user as $k => $v) {
	echo "<tr>";
	echo "<td>".$v['username']."</td>";
	echo "<td>".$v['age']."</td>";
	echo "<td>".$v['sex']."</td>";
	echo "<td>".$v['phone']."</td>";
	echo "<td>".$v['qq']."</td>";
	echo "</tr>";
}
echo "</table>";




// var_dump($user['qq']);


// echo $arr[3];
// 关联数组